﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="info_list.aspx.cs" Inherits="admin_allergy_info_list" %>

<!DOCTYPE HTML PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
    <title>Lomboz aspx</title>
    <meta http-equiv="Cache-Control" content="no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <link href="../css/default.css" rel="stylesheet" type="text/css" />

    <script src="../js/jUtility.js" type="text/javascript"></script>

    <script type="text/javascript">
        function deldata() {
            var s;
            var url;
            s = '该操作不能恢复,是否确认?';

            if (!isChecked(pageform.ids)) {
                alert("请选择要删除的信息!");
                return false;
            }
            if (confirm(s)) {
                return true;
            }
            return false;
        }

        function pubdata() {
            if (!isChecked(pageform.ids)) {
                alert("请选择要发布的信息!");
                return false;
            }
            return true;
        }
        function searchdata() {
            pageform.submit();
            return false;
        }

    </script>

</head>
<body>
    <form id="pageform" runat="server" method="post">
    <table width="100%" height="600" border="0" align="left" cellpadding="0" cellspacing="0"
        bgcolor="#FFFFFF">
        <tr>
            <td height="414" align="left" valign="top" class="rightbg">
                <table width="100%" height="489" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="26">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td height="2" bgcolor="#A49B81">
                                    </td>
                                </tr>
                                <tr>
                                    <td height="22" background="../images/position_bg.gif" bgcolor="#EEF6FE" class="subnav"
                                        style="background-repeat: repeat-y; background-position: left; padding-left: 6px;">
                                        <asp:Label ID="headers" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <td height="1" bgcolor="#B0C9E8">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="16">
                        </td>
                    </tr>
                    <tr>
                        <td height="21">
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td width="25">
                                        &nbsp;
                                    </td>
                                    <td width="100" align="left">
                                        <table width="80" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td width="3">
                                                    <img src="../images/btn_blue_left.gif" width="3" height="21" />
                                                </td>
                                                <td width="26" align="center" background="../images/btn_blue_center.jpg">
                                                    <img src="../images/icon_add.gif" width="16" height="14" />
                                                </td>
                                                <td align="left" background="../images/btn_blue_center.jpg" class="subnav">
                                                    <asp:LinkButton runat="server" ID="add" OnClick="Add_click">新 增</asp:LinkButton>
                                                </td>
                                                <td width="3">
                                                    <img src="../images/btn_blue_right.jpg" width="3" height="21" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td width="100" align="left" runat="server" id="deltd">
                                        <table width="80" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td width="3">
                                                    <img src="../images/btn_blue_left.gif" width="3" height="21" />
                                                </td>
                                                <td width="26" align="center" background="../images/btn_blue_center.jpg">
                                                    <img src="../images/icon_delete.gif" width="15" height="15" />
                                                </td>
                                                <td align="left" background="../images/btn_blue_center.jpg" class="subnav">
                                                    <asp:LinkButton runat="server" ID="del" OnClick="Del_click" OnClientClick="return deldata();">删 除</asp:LinkButton>
                                                </td>
                                                <td width="3">
                                                    <img src="../images/btn_blue_right.jpg" width="3" height="21" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td width="100" align="left" runat="server" id="audittd">
                                        <table width="80" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td width="3">
                                                    <img src="../images/btn_blue_left.gif" width="3" height="21" />
                                                </td>
                                                <td width="26" align="center" background="../images/btn_blue_center.jpg">
                                                    <img src="../images/icon_edit.gif" width="16" height="15" />
                                                </td>
                                                <td align="left" background="../images/btn_blue_center.jpg" class="subnav">
                                                    <asp:LinkButton runat="server" ID="allstatic" OnClick="allstatic_click" OnClientClick="return true;">全部生成</asp:LinkButton>
                                                </td>
                                                <td width="3">
                                                    <img src="../images/btn_blue_right.jpg" width="3" height="21" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <%--	<td width="100" runat="server" id="pubtd">
			<table width="80" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="3"><img src="../images/btn_blue_left.gif" width="3" height="21" /></td>
                  <td width="26" align="center" background="../images/btn_blue_center.jpg"><img src="../images/icon_channel.gif" width="12" height="12" /></td>
                  <td align="left" background="../images/btn_blue_center.jpg" class="subnav">
                  <asp:LinkButton runat="server" ID="pub" OnClick="Pub_click" OnClientClick="return pubdata();">发 布</asp:LinkButton>
                  </td>
                  <td width="3"><img src="../images/btn_blue_right.jpg" width="3" height="21" /></td>
                </tr>
              </table>	
	</td>
--%>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="16">
                        </td>
                    </tr>
                    <tr>
                        <td align="left" valign="top" style="padding-left: 10px;">
                            <table width="95%" height="74" border="1" align="center" cellpadding="0" cellspacing="0"
                                bordercolorlight="#2583BC" bordercolordark="#ffffff" bgcolor="#B3CFEC">
                                <tr>
                                    <td width="100%" valign="top">
                                        <table width="95%" height="75" border="0" align="center" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td height="29" align="center" valign="middle">
                                                    <table width="98%" height="30" border="0" cellpadding="0" cellspacing="0" bgcolor="#C0D8EF">
                                                        <tr>
                                                            <td align="center" valign="middle">
                                                                <table width="98%" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
                                                                    <tr>
                                                                        <td width="15%" height="20" valign="bottom">
                                                                            <input type="hidden" name="id" />
                                                                            每页显示数：
                                                                        </td>
                                                                        <td width="10%" valign="middle">
                                                                            <asp:DropDownList ID="rows" runat="server">
                                                                                <asp:ListItem Text="10" Value="10" />
                                                                                <asp:ListItem Text="15" Value="15" />
                                                                                <asp:ListItem Text="20" Value="20" />
                                                                                <asp:ListItem Text="50" Value="50" />
                                                                            </asp:DropDownList>
                                                                        </td>
                                                                        <td width="10%" valign="bottom">
                                                                            排序：
                                                                        </td>
                                                                        <td width="30%" align="left" valign="middle">
                                                                            <asp:DropDownList ID="ordername" runat="server">
                                                                                <asp:ListItem Text="创建时间" Value="addtime" />
                                                                                <asp:ListItem Text="修改时间" Value="modifytime" />
                                                                                <%--	    <asp:ListItem  Text="浏览次数" Value="hits" />
--%>
                                                                            </asp:DropDownList>
                                                                            <asp:DropDownList ID="ordertype" runat="server">
                                                                                <asp:ListItem Text="正序" Value="asc" />
                                                                                <asp:ListItem Text="倒序" Value="desc" />
                                                                            </asp:DropDownList>
                                                                        </td>
                                                                        <td width="10%" valign="bottom">
                                                                            状态：
                                                                        </td>
                                                                        <td width="30%" valign="bottom">
                                                                            <asp:DropDownList ID="qdocstate" runat="server">
                                                                                <asp:ListItem Text="全部" Value="" />
                                                                                <asp:ListItem Text="正稿" Value="0" />
                                                                                <asp:ListItem Text="草稿" Value="4" />
                                                                                <%--	    <asp:ListItem  Text="已审核" Value="2" />
	    <asp:ListItem  Text="审核未通过" Value="3" />
	    <asp:ListItem  Text="已发布" Value="1" />
	    <asp:ListItem  Text="撤消发布" Value="6" />
--%>
                                                                            </asp:DropDownList>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td height="23" align="center" valign="middle">
                                                    <table width="98%" height="30" border="0" cellpadding="0" cellspacing="0" bgcolor="#C0D8EF">
                                                        <tr>
                                                            <td align="center" valign="middle">
                                                                <table width="98%" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
                                                                    <tr>
                                                                        <td width="15%" height="20" valign="bottom">
                                                                            搜索：
                                                                        </td>
                                                                        <td width="85%" valign="middle">
                                                                            <asp:DropDownList runat="server" ID="querykey">
                                                                                <asp:ListItem Text="全部" Value="" />
                                                                                <asp:ListItem Text="标题" Value="title" />
                                                                                <%--	    <asp:ListItem Text="作者" Value="author" />
--%>
                                                                                <asp:ListItem Text="创建人" Value="addusername" />
                                                                            </asp:DropDownList>
                                                                            <asp:DropDownList runat="server" ID="querytype">
                                                                                <asp:ListItem Text="等于" Value="1" />
                                                                                <asp:ListItem Text="包含" Value="0" />
                                                                            </asp:DropDownList>
                                                                            <asp:TextBox ID="queryvalue" runat="server" />
                                                                            <input type="button" onclick="javascript:searchdata();" name="Submit" value="搜索" />
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="16">
                        </td>
                    </tr>
                    <tr>
                        <td height="310" align="center" valign="top" style="padding-left: 10px;">
                            <table width="95%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#2583BC"
                                bordercolordark="#ffffff">
                                <tr>
                                    <td width="100%" height="300" valign="top">
                                        <asp:GridView ID="GridView1" runat="server" Width="100%" border="0" CellPadding="0"
                                            CellSpacing="0" ShowFooter="false" AllowPaging="True" AutoGenerateColumns="False">
                                            <Columns>
                                                <asp:TemplateField HeaderText="全选">
                                                    <HeaderTemplate>
                                                        全选
                                                        <input name="all" type="checkbox" onclick="selectall('ids');" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <input type="checkbox" value="<%# DataBinder.Eval(Container.DataItem, "Articleid") %>"
                                                            name="ids" />
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                    <ItemStyle CssClass="greytd" />
                                                </asp:TemplateField>
                                                <asp:BoundField HeaderText="ID" DataField="Articleid" ItemStyle-CssClass="greytd" />
                                                <asp:BoundField DataField="Title" HeaderText="标题" ItemStyle-CssClass="greytd" />
                                                <asp:TemplateField HeaderText="首页置顶">
                                                    <HeaderTemplate>
                                                        首页置顶</HeaderTemplate>
                                                    <ItemTemplate>
                                                        <%#Eval("Indextop").ToString()=="1"?"是":"否"%>
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                    <ItemStyle CssClass="greytd" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="栏目置顶">
                                                    <HeaderTemplate>
                                                        栏目置顶</HeaderTemplate>
                                                    <ItemTemplate>
                                                        <%#Eval("Sorttop").ToString()=="1"?"是":"否"%>
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                    <ItemStyle CssClass="greytd" />
                                                </asp:TemplateField>
                                                <%--	    <asp:TemplateField HeaderText="推荐" >
	        <HeaderTemplate>推荐</HeaderTemplate>
	        <ItemTemplate>
	        <%#Eval("recommend").ToString() == "1" ? "是" : "否"%>
	        </ItemTemplate>
	        <ItemStyle HorizontalAlign="Center" />
            <ItemStyle CssClass="greytd" />
	    </asp:TemplateField>
	    
	    <asp:TemplateField HeaderText="妈妈知道" >
	        <HeaderTemplate>妈妈知道</HeaderTemplate>
	        <ItemTemplate>
	        <%#Eval("doKnow").ToString() == "1" ? "是" : "否"%>
	        </ItemTemplate>
	        <ItemStyle HorizontalAlign="Center" />
            <ItemStyle CssClass="greytd" />
	    </asp:TemplateField>

	    
	    
	    <asp:TemplateField HeaderText="banner" >
	        <HeaderTemplate>banner</HeaderTemplate>
	        <ItemTemplate>
	        <%#Eval("banner").ToString() == "1" ? "显示" :"不显示"%>
	        </ItemTemplate>
	        <ItemStyle HorizontalAlign="Center" />
            <ItemStyle CssClass="greytd" />
	    </asp:TemplateField>
--%>
                                                <asp:TemplateField HeaderText="状态">
                                                    <HeaderTemplate>
                                                        状态</HeaderTemplate>
                                                    <ItemTemplate>
                                                        <%#Eval("Docstate").ToString() == "1" ? "发布" : Eval("Docstate").ToString() == "0" ? "正稿" : Eval("Docstate").ToString() == "2" ? "已审核" : Eval("Docstate").ToString() == "3"?"审核未通过":Eval("Docstate").ToString() == "4"?"草稿":"撤消发布"%>
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                    <ItemStyle CssClass="greytd" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="addusername" HeaderText="创建人" ItemStyle-CssClass="greytd"
                                                    ItemStyle-HorizontalAlign="Center" />
                                                <asp:BoundField DataField="AddtimeShort" HeaderText="创建日期" ItemStyle-CssClass="greytd"
                                                    SortExpression="Hotspot_date" ItemStyle-HorizontalAlign="Center" />
                                                <asp:TemplateField HeaderText="管理">
                                                    <HeaderTemplate>
                                                        管理
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="preview" runat="server" OnClick="Preview_click" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Articleid") %>' >预览</asp:LinkButton>
                                                        <asp:LinkButton ID="mod" runat="server" OnClick="Mod_click" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Articleid") %>'>修改</asp:LinkButton>
                                                        <%--                 <asp:LinkButton ID="pubone" Visible='<%#(Eval("Docstate").ToString() == "0"&& isaudit==0)|| Eval("Docstate").ToString() == "2"%>' runat="server" OnClick="Pubone_click"  CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Articleid") %>' >发布</asp:LinkButton>
                 
                 <asp:LinkButton ID="repubone" Visible='<%#(Eval("Isfront"))%>' runat="server" OnClick="RePubone_click"  CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Articleid") %>' >撤消发布</asp:LinkButton>
--%>
                                                        <asp:LinkButton ID="seo" runat="server" OnClick="Seo_click" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Articleid") %>'>SEO优化</asp:LinkButton>
                                                        <a href="javascript:void(0);" onclick="window.open('info_img_list.aspx?aid=<%# DataBinder.Eval(Container.DataItem, "Articleid") %>&layerid=<%=Layerid %>','_img','width=625，height=235，resizable=1，scrollbars=auto');">
                                                            图片</a>
                                                        <asp:LinkButton ID="static" runat="server" OnClick="static_click" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Articleid") %>'>生成</asp:LinkButton>
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                    <ItemStyle CssClass="greytd" />
                                                </asp:TemplateField>
                                            </Columns>
                                            <PagerTemplate>
                                            </PagerTemplate>
                                        </asp:GridView>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                <!--分页开始-->
                <asp:Label ID="pagehtml" runat="server" />
                <!--分页结束-->
            </td>
        </tr>
    </table>
    </form>
    <div style="display: none">
    </div>
</body>
</html>
